<?php
require_once('db.php');

$date = date('Y-m-d H:i:s');
$query = "INSERT INTO `users` SET
`status` = '1',
`created_date` = '$date',
`name` = 'Hemant Sharma',
`email` = 'hemant.nice@gmail.com',
`password` = '123456'";

mysql_query($query) or die(mysql_error());

$lastInsertedId = mysql_insert_id();

echo "User inserted on Id : $lastInsertedId \n\n";
